package com.hnx.admin.aurora.context;

import org.springframework.core.NamedThreadLocal;

/*
创建人： 倔强的头发
创建时间：2025/6/22
功能描述:

*/
public class LogContext {
    private static final ThreadLocal<Long> TIME_THREADLOCAL = new NamedThreadLocal<Long>("Cost Time");
    public static void setTime(long time){
        TIME_THREADLOCAL.set(time);
    }
    public static long getTime(){
        return TIME_THREADLOCAL.get();
    }
    public static void clear(){
        TIME_THREADLOCAL.remove();
    }
}
